package com.perfree.entity;


import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "t_share")
public class Share {

    @Id
    private Integer id;
    @Column(name = "is_dir")
    private Integer isDir = 1;
    @Column(name = "path_")
    private String path;
    @Column(name = "path_md5")
    private String pathMd5;
    private String password;
    @Column(name = "desc_")
    private String desc;
    @Column(name = "createTime")
    private Date createTime = new Date();
    @Column(name = "user_id")
    private Integer userId;

    private String name;

    private String size;

    @Column(name = "peer_id")
    private Integer peerId;
}
